package com.rongc.client.freight.business.waybill.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.business.waybill.model.WayBillDetailBean;


/*
*  运单详情
* */

public class WaybillDetailApi extends AbsRequest<WaybillDetailApi.WaybillDetailParams, WayBillDetailBean> {

    public WaybillDetailApi(WaybillDetailParams feedbackParams, Listener<WayBillDetailBean> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getWaybillUrl(), feedbackParams, listener, errorListener, WayBillDetailBean.class);
    }

    public static class WaybillDetailParams extends BaseParams {

        public WaybillDetailParams(String id) {
            put("id",id);
            put("type","1"); // (1运单2货源)
            put("userType", UniApplication.getInstance().getType()); // 用户类型(1货主2车主)
        }
    }


}
